﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Menfram.Entity.Interface;
using Menfram.DAL.Reflection;

namespace Entitys
{
   [Table(TableName="tbprofessor", SequenceName="prf_sequencial", KeyName="prf_nome", ClassName="Entitys.Professor")] 
   public class Professor:IEntity
    {
       [Field(FieldName="PRF_SEQUENCIAL")]
        public int? Sequencial { get; set; }
       [Field(FieldName="PRF_NOME")]
        public String Nome { get; set; }

       #region IEntity Members


       public string Key
       {
           get { return Nome; }
       }

       public string DescriptionComboBox
       {
           get { return Nome; }
       }

       #endregion
    }
}
